package com.nmsl.masterdocker.service.impl;

import com.nmsl.masterdocker.domain.HospitalizationRegistrationZY;
import com.nmsl.masterdocker.mapper.HospitalizationRegistrationZYMapper;
import com.nmsl.masterdocker.service.HospitalizationRegistrationZYService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
@Service
public class HospitalizationRegZYIml implements HospitalizationRegistrationZYService {
    @Autowired
    HospitalizationRegistrationZYMapper hospitalizationRegistrationZYMapper;
    @Override
    public List<HospitalizationRegistrationZY> getHospitalizationRegistBydockerId(long dockerId) {
        return hospitalizationRegistrationZYMapper.selectpatientByDoctorId(dockerId);
    }

    @Override
    public List<HospitalizationRegistrationZY> getHospitalizationByHospitalizationRegistrationZY(HospitalizationRegistrationZY hospitalizationRegistrationZY) {
        return hospitalizationRegistrationZYMapper.selectpatientByHospitalization(hospitalizationRegistrationZY);
    }
}
